// RewriteSrt.h: interface for the CRewriteSrt class.
//
//////////////////////////////////////////////////////////////////////

#pragma once

class CRewriteSrt
{
protected:
	BOOL IsTime(TCHAR *tc);
	long lFindTime(TCHAR *tc, long lLen, long lBegin);
	long lFindDblEnter(TCHAR *tc, long lLen, long lBegin);

public:
	void fix1Sub(CString &sub);
	BOOL bRewriteSrt(LPCTSTR lpSrt, CString &csSrtNew, LPCTSTR lpTempFolder, UINT uiCodePage=CP_ACP);
	CRewriteSrt();
	virtual ~CRewriteSrt();

};
